package ym.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import ym.pojo.ProductRecord;

import java.util.List;

public interface ProductRecordService {
    void add(ProductRecord productRecord);

    void update(ProductRecord productRecord);

    void delete(Integer id);

    ProductRecord findById(Integer id);

    List<ProductRecord> findAll();

    Page<ProductRecord> search(String search, int page, int size);
    Page<ProductRecord> searchByNutritionProductId(Integer nutritionProductId,String search, int page, int size);
}
